<?php
/*
填写商家回收地址
*/
include('../conn.php');

// 需传参数 
$id = $_REQUEST['id'];
$address = $_REQUEST['address'];
// 需传参数 end

if ($id != '' && $address != '') {
	$query = mysql_query("UPDATE tuihuo set address='".$address."' where id=".$id);
	if (mysql_affected_rows()>0) {
		$arr = array('code' => 200, 'msg' => '添加成功' );
	}else{
		$arr = array('code' => 201, 'msg' => '添加失败' );
	}
}else{
	$arr = array('code' => 400, 'msg' => 'id或address不存在' );
}

echo json_encode($arr);